package com.msl.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.msl.R;


public class ERPDialog extends Dialog {

    private String tag = "ERPDialog";

    public interface PriorityListener {

        void finishActivity();
    }
    private PriorityListener listener;

    private Context mContext;
    private Button bt1;
    private TextView ed;


    public ERPDialog(final Context context, int theme , PriorityListener priorityListener,String erp) {
        super(context, theme);
        mContext = context;
        listener = priorityListener;
        setContentView(R.layout.dialog_erp);
        ed = (TextView)findViewById(R.id.ed);
        ed.setText(erp);
        bt1 = (Button) findViewById(R.id.bt1);
        bt1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                listener.finishActivity();
                dismiss();
            }
        });
    }


}


